package edu.friday.service;

import edu.friday.common.result.Pageable;
import edu.friday.common.result.TableDataInfo;
import edu.friday.model.SysRole;

import java.util.List;
import java.util.Set;

public interface SysRoleService {
    TableDataInfo selectRoleList(SysRole role, Pageable page);

    int insertRole(SysRole role);

    int deleteRoleByIds(Long[] roleIds);

    int updateRole(SysRole role);

    List<SysRole> selectRoleAll();

    SysRole selectRoleById(Long roleId);

    List<Long> selectRoleListByUserId(Long userId);

    Set< String> selectRolePermissionByUserId(Long userId);
}
